作者:沈晓燕-东东 | 来源:互联网 | 2023-05-18 10:17
IamwritinganapplicationusingPhoneGap,andamfindingithardtoworkouthowtostoremydata
I am writing an application using PhoneGap, and am finding it hard to work out how to store my data in a database. For the minute I just want to keep an open mind as I will be recommending technology options to our company.
我正在使用PhoneGap编写应用程序,并且发现很难弄清楚如何将数据存储在数据库中。我只想保持开放的心态,因为我将向公司推荐技术选项。
The PhoneGap API for storage is here,
用于存储的PhoneGap API在这里,
http://docs.phonegap.com/en/1.3.0/phonegap_storage_storage.md.html#Storage
http://docs.phonegap.com/en/1.3.0/phonegap_storage_storage.md.html#Storage
It is based on this HTML5 spec,
它基于这个HTML5规范,
http://www.w3.org/TR/webdatabase/
http://www.w3.org/TR/webdatabase/
The problem for me is that the specification for this is not being maintained any more, and the standard has been deprecated.
对我来说问题是不再维护此规范,并且该标准已被弃用。
The other problem is that I implemented a database using web database, and the versioning didn't work properly.
另一个问题是我使用Web数据库实现了数据库,并且版本控制无法正常工作。
What is PhoneGaps stance on this and will PhoneGap look at other technologies such as the Indexed Database API,
什么是PhoneGaps对此的立场,并将PhoneGap看看其他技术,如索引数据库API,
http://www.w3.org/TR/IndexedDB/#database-concept
http://www.w3.org/TR/IndexedDB/#database-concept
I am storing JSON data in the localStorage for now which is working great, but I am wondering if my database could get too big and it might not be the best option.
我现在正在localStorage中存储JSON数据,这工作得很好,但我想知道我的数据库是否会变得太大而且可能不是最佳选择。
1 个解决方案